package com.zjxd.business.web.model.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zjxd.business.web.model.pojo.TBUser;
import com.zjxd.business.web.model.pojo.TBUserExample;

public interface TBUserMapper {
    long countByExample(TBUserExample example);

    int deleteByExample(TBUserExample example);

    int deleteByPrimaryKey(Long userid);

    int insert(TBUser record);

    int insertSelective(TBUser record);

    List<TBUser> selectByExample(TBUserExample example);

    TBUser selectByPrimaryKey(Long userid);

    int updateByExampleSelective(@Param("record") TBUser record, @Param("example") TBUserExample example);

    int updateByExample(@Param("record") TBUser record, @Param("example") TBUserExample example);

    int updateByPrimaryKeySelective(TBUser record);

    int updateByPrimaryKey(TBUser record);
    
    List<TBUser> getAllByMap(Map<String,Object> map);
    
    //根据用户id列表查询用户列表
    List<TBUser> listAllByIds(List<Long> idList);
    
    //判断用户名或用户电话号是否重复
    int selectCount(TBUser user);
}